RAG 102

rag
build non-simple RAG systems

What is wrong with ‘simple’ RAG

  1. Issues in retrieval The user query does not really provide information as to what is the relevant document, given naive RAG systems where embeddings/keyword search is employed.

Techniques to mitigate limitations of simple RAG

2. Pre-retreival, Post-retreival techniques

query-rewriting

query sanitisation

Different datatypes

  • images
  • tables, columns within tables

Text to SQL

RAG for code generation

Self-evolving RAG systems

RAG superset architecture